package com.ratta.supernote.note.plugincore.modules;

import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.ratta.supernote.note.plugincore.NativeFileUtilsSpec;
import com.ratta.supernote.note.plugincore.NativeUIUtilsSpec;
import com.ratta.supernote.note.plugincore.api.NoteLibAPI;
import com.ratta.supernote.note.plugincore.callback.NoteDialogListener;

public class RTNUIUtils extends NativeUIUtilsSpec {

    public RTNUIUtils(ReactApplicationContext reactContext) {
        super(reactContext);
    }

    @Override
    public void showErrorTipDialog(String tag) {

        NoteLibAPI.getInstance().showTipDialog(getCurrentActivity(), false, tag, new NoteDialogListener() {
            @Override
            public void onConfirm() {

            }

            @Override
            public void onCancel() {

            }
        });

    }
}
